package com.runvp.common.enums;


/**
 * 支付状态
 * @author xukk_dp
 */

public enum PayStatus implements BaseEnumInterface {

    PAY_SUCCEEDED("payment.succeeded", "支付成功"),
    PAY_FAILED("payment.failed", "支付失败"),
    PAY_CLOSE_SUCCEEDED("payment.close.succeeded", "支付关单成功"),
    PAY_CLOSE_FAILED("payment.close.failed", "支付关单失败"),
    REFUND_SUCCEEDED("refund.succeeded", "退款成功"),
    REFUND_FAILED("refund.failed", "退款失败");


    private final String code;
    private final String desc;
    private String defaulted;

    @Override
    public String getDefaulted() {
        return defaulted;
    }


    PayStatus(String code, String desc, String defaulted) {
        this.code = code;
        this.desc = desc;
        this.defaulted = defaulted;
    }


    PayStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public String getCode() {
        return code;
    }
    @Override
    public String getDesc() {
        return desc;
    }
}
